<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <style>
            body {
                /* display: flex; */
                position: relative;
            }
            #box {
                position: absolute;
                width: 100px;
                height: 100px;
                left: 200px;
                top: 200px;
                /* white-space: Nowrap; */
                overflow-x: auto;
            }
            .abc {
                background: green;
            }
        </style>
    </head>
    <body>
        <div id="box">
            卡设计导航接口askldjklas导航接口askldjklas导航接口askldjklas导航接口askldjklas
        </div>
    </body>
    <script src="../11.17/jquery-3.6.1.js"></script>
    <script>
        $(function () {
            $('#box').click(function () {
                console.table($(this).height())
            })

            // console.log($('#box').scrollTop(100))
            // console.log(document.getElementById('box').getBoundingClientRect())
        })
    </script>
</html>
